Replication Archive for: Aggarwal, Minali, Jennifer Allen, Alex Coppock, Dan Frankowski, Sol Messing, Kelly Zhang, James Barnes, Andrew Beasley, Harry Hantman, and Sylvan Zheng: The impact of digital campaign advertising during the 2020 US presidential election: evidence from survey experiments, field experiments, and a campaign-level experiment. Nature Human Behavior, forthcoming.


# Contents

This archive contains 11 analysis scripts. 7 of them pertain to the main analysis:

helper_file.R
in_text_calculations.R
figure_1.R
figure_2.R
figure_3.R
figure_5.R
table_1.R

These scripts depend on 1 data file:

aggregated_analysis_set.rds

5 of the analysis scripts pertain to the appendix:

in_text_calculations.R
figure_B1.R
figure_B2.R
figure_C3.R
figure_C4.R

These depend on 6 data files:

ad_library_2020.csv
weekly_adds_for_page_id_disclaimer_041322.csv
treatment_descriptives.csv
fielding_dates.rds
fielding_dates_survey.rds
ad_library_2020_acronym.csv


# Installation

Some add-on packages for R are required to run this replication archive. 
Use the following to install them all:

install.packages(c("tidyverse", "DeclareDesign", "xtable", "texreg", "car"))


# System Information

> sessionInfo()
R version 4.0.4 (2021-02-15)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur 11.5.2

